/**
 * 数学页面公共样式
 */
page {
    background-color: #f6f6f6;
}

.page-container {
    background-color: #f6f6f6;
    padding: 0 24rpx;
    box-sizing: border-box;
    padding-bottom: 160rpx; /* 为底部按钮预留空间 */
}

.page-container .empty {
    height: 50rpx;
}

.wrapper {
    background-color: #ffffff;
    border-radius: 20rpx;
    padding: 36rpx 24rpx;
    box-shadow: 0 6rpx 8rpx rgba(0, 0, 0, 0.15);
    margin: 30rpx 0;
    display: flex;
    flex-direction: column;
}

.wrapper .wrapper-title {
    font-size: 32rpx;
    color: #141414;
    margin-bottom: 36rpx;
    font-weight: bold;
    text-align: center;
}

.wrapper .canvas-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400rpx;
    background: #f8f9fa;
    border-radius: 12rpx;
    border: 2rpx dashed #dee2e6;
}

.wrapper .canvas-content {
    max-width: 100%;
    border-radius: 8rpx;
    box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.wrapper .random-button-area {
    margin-top: 40rpx;
    display: flex;
    align-items: center;
    gap: 20rpx;
}

.wrapper .random-button-area .type-selector {
    flex: 1; /* 占据剩余空间 */
    height: 80rpx;
    background-color: #fff;
    border: 2rpx solid #e5e5e5;
    border-radius: 16rpx;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24rpx;
    box-sizing: border-box;
}

.wrapper .random-button-area .type-selector .type-selector-text {
    font-size: 28rpx;
    color: #333;
}

.wrapper .random-button-area .type-selector .type-selector-arrow {
    font-size: 20rpx;
    color: #999;
}

.wrapper .random-button-area .random-button {
    flex: 2;
}

/* 底部按钮区域 */
.bottom-btn-box {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 180rpx;
    display: flex;
    justify-content: space-between;
    background-color: #fff;
    box-shadow: 0px -3.9rpx 5.2rpx rgba(0, 0, 0, 0.15);
    padding: 24rpx;
    padding-bottom: env(safe-area-inset-bottom);
    box-sizing: border-box;
    border-radius: 16rpx 16rpx 0 0;
    z-index: 2;
}
