feat(widgets): simplify locations and paid sidebar

Remove deprecated widget locations and widgets, standardize sidebar labels, and render a compact paid-post purchase card in the article sidebar.
This commit is contained in:
2026-08-14 01:49:50 +08:00
parent 51d2ab3aa7
commit bd7d3046a5
43 changed files with 294 additions and 3581 deletions
-92
View File
@@ -216,98 +216,6 @@
.aksrt-img-grid--4 { grid-template-columns: repeat(3, 1fr); }
}
/* ============================================================
* 4. 定价卡片 — .aksrt-pricing-card
* ============================================================ */
.aksrt-pricing-card {
position: relative;
background: var(--surface-1, #fff);
border: 1px solid var(--color-line, rgba(50, 50, 50, 0.06));
border-radius: var(--radius-lg, 8px);
padding: 28px 24px;
text-align: center;
transition: box-shadow .25s ease, transform .25s ease;
}
.aksrt-pricing-card:hover {
box-shadow: var(--shadow-lg, 0 0 10px rgba(116, 116, 116, 0.12));
transform: none;
}
/* 推荐/高亮卡片 */
.aksrt-pricing-card--featured {
border-color: var(--color-primary);
box-shadow: 0 0 0 1px var(--color-primary), var(--shadow-lg);
}
.aksrt-pricing-card__badge {
position: absolute;
top: -1px;
left: 50%;
transform: translateX(-50%);
background: var(--color-primary);
color: #fff;
padding: 2px 16px;
border-radius: 0 0 var(--radius, 8px) var(--radius, 8px);
font-size: 12px;
font-weight: 700;
}
.aksrt-pricing-card__title {
font-size: 18px;
font-weight: 700;
color: var(--color-ink, #333);
margin-bottom: 8px;
}
.aksrt-pricing-card__price {
font-size: 36px;
font-weight: 800;
color: var(--color-primary);
line-height: 1.2;
margin: 12px 0 4px;
}
.aksrt-pricing-card__price small {
font-size: 14px;
font-weight: 500;
color: var(--color-ink-3, #777);
}
.aksrt-pricing-card__desc {
font-size: 14px;
color: var(--color-ink-3, #777);
margin-bottom: 20px;
}
.aksrt-pricing-card__features {
list-style: none;
padding: 0;
margin: 0 0 24px;
text-align: left;
}
.aksrt-pricing-card__features li {
padding: 6px 0;
font-size: 14px;
color: var(--color-ink-2, #4e5358);
display: flex;
align-items: center;
gap: 8px;
}
.aksrt-pricing-card__features li::before {
content: '✓';
color: var(--color-success);
font-weight: 700;
font-size: 13px;
}
.aksrt-pricing-card__cta {
display: block;
width: 100%;
}
/* ============================================================
* 5. Toggle 开关 — .aksrt-toggle (纯 CSS + :checked)
* 保持原生 <input> 可访问性