/* 积分系统前端样式 (Points Plugin) */
.points-wrap {
    margin: 0 0 24px;
    color: #333;
}

.points-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    margin-bottom: 20px;
    overflow: hidden;
}

.points-card-head {
    padding: 14px 18px;
    border-bottom: 1px solid #f0f0f0;
}

.points-card-head h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
}

.points-card-body {
    padding: 16px 18px;
}

.points-btn {
    display: inline-block;
    border: none;
    border-radius: 4px;
    padding: 7px 18px;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
    background: #e9e9e9;
    color: #555;
    transition: all .18s ease;
}

.points-btn-primary {
    background: #467b96;
    color: #fff;
}

.points-btn-primary:hover:not(:disabled) {
    background: #38657c;
}

.points-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.points-btn-small {
    padding: 3px 10px;
    font-size: 12px;
}

.points-notice {
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 14px;
    margin: 6px 0;
}

.points-notice-info {
    background: #f2f7fa;
    color: #46707e;
}

.points-notice-warn {
    background: #fdf3e7;
    color: #a4611d;
}

.points-notice-ok {
    background: #eff7ef;
    color: #3c763d;
}

/* 签到 */
.points-signin-info {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
}

.points-streak b {
    color: #467b96;
    font-size: 16px;
}

/* 任务 */
.points-task-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.points-task {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px dashed #eee;
}

.points-task:last-child {
    border-bottom: none;
}

.points-task-main b {
    font-size: 15px;
    margin-right: 8px;
}

.points-task-points {
    color: #d07846;
    font-weight: 600;
    margin-right: 10px;
}

.points-task-meta {
    color: #999;
    font-size: 13px;
}

.points-task-desc {
    margin: 6px 0 0;
    color: #777;
    font-size: 13px;
}

.points-task-side {
    text-align: right;
    flex-shrink: 0;
}

.points-task-progress {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
}

.points-auto-tasks {
    margin-top: 18px;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}

.points-auto-tasks h4 {
    font-size: 14px;
    margin: 0 0 8px;
    color: #666;
}

.points-auto-tasks ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.points-auto-tasks li {
    padding: 8px 0;
    border-bottom: 1px dashed #f2f2f2;
}

.points-auto-tasks li p {
    margin: 4px 0 0;
    color: #888;
    font-size: 13px;
}

/* 商店 */
.points-shop-balance {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.points-balance-num {
    color: #d07846;
    font-size: 20px;
}

.points-item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}

.points-item {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.points-item-name {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.points-item-price {
    color: #d07846;
    font-weight: 700;
    font-size: 17px;
}

.points-item-desc {
    margin: 0;
    color: #777;
    font-size: 13px;
    min-height: 18px;
}

.points-item-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
    flex-wrap: wrap;
    gap: 4px;
}

.points-item-stock.is-out {
    color: #c0392b;
}

.points-item-limit {
    font-size: 12px;
    color: #a4611d;
    background: #fdf7ef;
    padding: 4px 8px;
    border-radius: 3px;
}

.points-contact {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 8px;
    font-size: 13px;
    resize: vertical;
}

/* 我的积分 */
.points-me-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.points-me-cell b {
    display: block;
    font-size: 22px;
    color: #467b96;
}

.points-me-label {
    font-size: 13px;
    color: #888;
}

.points-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.points-table th,
.points-table td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid #f0f0f0;
}

.points-table th {
    color: #888;
    font-weight: 500;
    font-size: 13px;
}

.points-table .is-plus {
    color: #3c763d;
    font-weight: 600;
}

.points-table .is-minus {
    color: #c0392b;
    font-weight: 600;
}

.points-pager {
    margin-top: 12px;
    display: flex;
    gap: 14px;
    align-items: center;
    font-size: 14px;
}

.points-contact-brief {
    color: #999;
    font-size: 12px;
}

/* 侧栏挂件 */
.points-widget-body {
    font-size: 14px;
}

.points-widget-balance {
    font-size: 15px;
    margin: 6px 0 10px;
}

.points-widget-balance b {
    color: #d07846;
    font-size: 22px;
}

.points-widget-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0;
}

/* 弹层 */
.points-modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.points-modal {
    background: #fff;
    border-radius: 6px;
    max-width: 420px;
    width: 88%;
    padding: 20px 22px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
}

.points-modal h4 {
    margin: 0 0 10px;
    font-size: 15px;
}

.points-modal .points-modal-content {
    font-size: 14px;
    word-break: break-all;
    max-height: 240px;
    overflow: auto;
}

.points-modal .points-modal-actions {
    margin-top: 16px;
    text-align: right;
}

@media (max-width: 640px) {
    .points-task {
        flex-direction: column;
        align-items: flex-start;
    }

    .points-task-side {
        text-align: left;
    }
}
