@import '../../style/theme.less';

page {
    background-color: @bg-page;
}

.cr-page {
    min-height: 100vh;
    padding: 0 @page-padding-x;
    padding-bottom: calc(200rpx + env(safe-area-inset-bottom));
    box-sizing: border-box;
}

.cr-main {
    padding-top: 24rpx;
    display: flex;
    flex-direction: column;
    gap: 64rpx;
}

.cr-section {
    display: flex;
    flex-direction: column;
    gap: 32rpx;
}

.cr-section-title {
    font-size: 32rpx;
    font-weight: 700;
    color: #6d3b00;
    padding-left: 8rpx;
}

.cr-chip-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24rpx;
}

.cr-chip {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24rpx 16rpx;
    color: @text-secondary;
    background: @bg-card;
    border-radius: 32rpx;
    transition:
        background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cr-chip--pressed {
    transform: scale(0.96);
    background: @brand;
    color: @text-selected-btn;
    font-weight: 700;
    box-shadow: 0 2rpx 8rpx rgba(50, 46, 37, 0.08);
}

.cr-chip--active {
    background: @brand;
    color: @text-selected-btn;
    font-weight: 700;
    box-shadow: 0 2rpx 8rpx rgba(50, 46, 37, 0.08);
}

.cr-chip__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rpx;
    width: 100%;
}

.cr-chip__label {
    font-size: 28rpx;
    font-weight: 700;
    line-height: 36rpx;
}

.cr-chip__subtitle {
    font-size: 20rpx;
    font-weight: 500;
    line-height: 28rpx;
    opacity: 0.75;
    text-align: center;
}

.cr-chip--active .cr-chip__subtitle,
.cr-chip--pressed .cr-chip__subtitle {
    opacity: 0.85;
}
