/* 开关与切换条 */
.pricing-toggle .toggleBox {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.pricing-toggle .toggleLabel {
    font-weight: 600;
    cursor: pointer;
    opacity: 0.55;
    display: inline-flex;
    align-items: center;
    padding: 8px 6px;
    line-height: 1;
}

.pricing-toggle .toggleLabel:hover {
    opacity: 0.85;
}

.pricing-toggle .toggleLabel.on {
    opacity: 1;
}

.pricing-toggle .toggleLabel em.save {
    font-style: normal;
    color: var(--link);
    margin-left: 4px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 999px;
    padding: 2px 6px;
    font-size: 12px;
    vertical-align: middle;
}
.sectionBtns .box {
    margin: 0 auto;
    text-align: center;
}
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #e6e6e6;
    transition: 0.2s;
    border-radius: 999px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    top: 3px;
    background: #fff;
    transition: 0.2s;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

input:checked + .slider {
    background: var(--link);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

/* 套餐卡片（沿用你站点的投影/边框/圆角风格） */
.pricing-plans {
    margin-top: 20px;
}

.planCard {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    border: 1px solid var(--line);
    position: relative;
}

.planCard:hover,
.planCard:focus-within {
    border: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.planCard .ribbon.hot {
    position: absolute;
    top: 0;
    right: 10%;
    padding: 4px 10px;
    background: var(--link);
    color: #fff;
    border-radius: 0 0 5px 5px;
}

.planHead {
    padding: 30px 22px;
    border-bottom: 1px dashed var(--line);
}

.planHead .badge-primary {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.12), rgba(99, 102, 241, 0.06));
    color: var(--link);
    border: 1px solid rgba(99, 102, 241, 0.25);
    font-weight: 600;
}

.planHead .price {
    margin-top: 10px;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    flex-direction: column;
    padding: 10px 0 0;
}

.planHead .price .monthly,
.planHead .price .yearly {
    font-size: 32px;
    font-weight: 700;
    /* line-height:  */
}

.planHead .price .muted {
    font-size: 14px;
    opacity: 0.6;
    font-weight: 600;
}

.planHead .price span {
    font-size: 14px;
    opacity: 0.8;
}

.planHead .price .tag {
    margin-top: 6px;
    font-size: 12px;
    color: var(--link);
}

.planHead .price .yearly .tag {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    border-radius: 6px;
    background: #fff8e1;
    color: #a67c00;
    border: 1px solid #f0d48a;
    font-size: 12px;
    line-height: 1;
}

.planHead .desc {
    margin-top: 10px;
    color: var(--greyFont);
}

.planFeatures {
    list-style: none;
    padding: 14px 22px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 13px;
    color: var(--text);
}

.planFeatures li {
    position: relative;
    padding-left: 20px;
    line-height: 1.55;
}

.planFeatures li:before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 14px;
    color: var(--link);
}

.planFoot {
    margin-top: auto;
    padding: 16px 22px 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.planFoot .tag.hot {
    color: #a13e00;
    background: #fff1e6;
    border: 1px solid #f2c5a6;
    border-radius: 999px;
    padding: 2px 8px;
}

.planFoot .tag.secondary {
    color: #335;
    background: #eef3ff;
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 999px;
    padding: 2px 8px;
    margin-left: auto;
}

.planCardList {
    padding: 80px 0 40px;
}

.planCardBox {
    padding: 0 20px;
}

.planCard.highlight {
    border: 1px solid rgba(99, 102, 241, 0.45);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
    transform: translateY(-10px);
}

.planCard:hover {
    border: 1px solid var(--link);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
    transform: translateY(-20px);
}

.planFoot .tag {
    font-size: 12px;
    color: #666;
}

/* 年付/按月显示切换（通过给 body 加类控制） */
body.monthly .price .yearly {
    display: none;
}

body.monthly .price .monthly {
    display: block;
}

body.yearly .price .yearly {
    display: block;
}

body.yearly .price .monthly {
    display: none;
}

/* 对比表 */
.compareTable thead th {
    background: #f7faff;
    border-bottom: 1px solid var(--line);
}

.compareTable th {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.note {
    font-size: 12px;
}

/* 焦点可见性与可访问性增强 */
.switch input:focus-visible + .slider {
    outline: 3px solid var(--link);
    outline-offset: 2px;
}

.planFoot a:focus-visible,
.pricing-toggle .toggleLabel:focus-visible {
    outline: 3px solid var(--link);
    outline-offset: 2px;
}

.compareTable tbody tr:nth-child(odd) {
    background: #fafcff;
}

.table-responsive thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.switch {
    padding: 4px;
}

.slider {
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

input:checked + .slider {
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0);
}

/* 细节统一：标题与描述间距 */
.planHead .desc {
    margin-top: 10px;
}

/* 统一卡片内行距 */
.planHead,
.planFeatures,
.planFoot {
    letter-spacing: 0.2px;
}

.pricing-toggle .sectionHeader {
    display: flex;
    align-items: center;
}

.pricing-toggle .sectionHeader .sectionTitle {
    flex: 1;
}

.pricing-toggle .sectionHeader .sectionBtns {
    display: flex;
    justify-content: flex-end;
}

.pricing-toggle .sectionBtns .toggleBox {
    margin-left: auto;
}

.sectionContent .tableBox .tip {
    margin: 10px;
    color: var(--text);
    font-size: 0.85rem;
}
.compareTable {
    table-layout: fixed;
    margin-bottom: 0;
}

.compareTable td,
.compareTable th {
    padding: 12px 10px;
    border-color: var(--line);
}

.compareTable td[data-yes] {
    color: var(--link);
}

.compareTable td[data-no] {
    color: var(--greyFont);
}

.compareTable th:not(:first-child),
.compareTable td:not(:first-child) {
    text-align: center;
}

.table-responsive {
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 767.98px) {
    .planCardList {
        padding: 20px 0;
    }
    .planCardBox {
        padding: 0;
    }
    .planFoot .xbtn {
        width: 100%;
    }

    .pricing-toggle .sectionHeader {
        flex-direction: column;
        align-items: flex-start;
    }

    .pricing-toggle .sectionHeader .sectionBtns {
        width: 100%;
        border: 1px solid var(--line);
        border-radius: 10px;
    }
    .compareTable {
        border: 1px solid var(--line);
    }
    .pricing-toggle .toggleBox {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        row-gap: 8px;
    }
    /* 允许所有单元格换行，避免溢出 */
    .compareTable {
        table-layout: auto;
    }

    .compareTable td {
        white-space: normal !important;
        overflow-wrap: anywhere;
        word-break: break-word;
        hyphens: auto;
        padding: 10px 8px;
    }

    .compareTable th:not(:first-child),
    .compareTable td:not(:first-child) {
        text-align: center;
    }

    .compareTable td:not(:first-child) {
        white-space: normal !important;
    }

    .compareTable td:first-child {
        font-size: 14px;
    }

    .compareTable th:not(:first-child),
    .compareTable td:not(:first-child) {
        font-size: 14px;
    }

    .table-responsive {
        -webkit-overflow-scrolling: touch;
        overflow-x: auto;
    }
}
